﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JXT.PrimaryKey.Batman.Collections;
using JXT.PrimaryKey.Batman.Domain.Models;
using JXT.PrimaryKey.Batman.Domain.Services;
using JXT.PrimaryKey.Batman.Domain.Specifications;
using JXT.PrimaryKey.Batman.Domain.UserSystem.Models;

namespace JXT.PrimaryKey.Batman.Domain.UserSystem.Services
{
    /// <summary>
    /// 用户认证日志
    /// </summary>
    public interface IAuthenticationLogService : IService
    {
        /// <summary>
        /// 增加新的日志
        /// </summary>
        /// <param name="title">标题</param>
        /// <param name="content">内容</param>
        void Add(string title, string content);

        /// <summary>
        /// 增加新的认证日志
        /// </summary>
        /// <param name="entity">认证日志内容</param>
        void Add(AuthenticationLog entity);

        /// <summary>
        /// 分页获取认证日志
        /// </summary>
        /// <param name="specification">查询条件</param>
        /// <returns>认证列表</returns>
        IPagedCollection<AuthenticationLog> GetList(IPagedSpecification<AuthenticationLog> specification);
    }
}
